package com.dddd.blog.api.admin.feign;


import com.dddd.blog.blogcommon.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 喵星球的大橘
 */
@FeignClient(name = "blogUserService",path = "/", qualifier = "blogUserService")
//@Component
public interface UserInfoClient {


    /**
     * 发起远程请求，获取系统用户数目
     * @return
     */
    @GetMapping("/user/count")
    Result getUserCount();

    /**
     * 获取用户列表
     * @return
     */
    @GetMapping("/user/list")
    Result getUserList();

    /**
     * 分页获取用户列表
     * @param object
     * @return
     */
    @PostMapping("/user/list")
    Result getUserListPage(@RequestBody Object object);

}
